package com.suzhe.ymall.product.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 商品属性表
 * </p>
 *
 * @author suzhe
 * @since 2019-07-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Attribute对象", description = "商品属性表")
public class Attribute implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "属性id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品分类id")
    private Integer categoryId;

    @ApiModelProperty(value = "商品属性名")
    private String name;

    @ApiModelProperty(value = "是否开启：0否，1是")
    private Boolean enable;

    @ApiModelProperty(value = "销售属性：0否，1是")
    private Boolean sale;

    @ApiModelProperty(value = "排序序列")
    private Integer orderNum;

    @ApiModelProperty(value = "创建者")
    private Integer creater;

    @ApiModelProperty(value = "更新者")
    private Integer updater;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;


}
